#!/usr/bin/env node

const fs = require('fs'),
      fileName = process.argv[2],
      log = console.log;

let num = 1;
let arr=[];

try{
  let str = fs.readFileSync(fileName).toString('utf8');
  arr = str.split('\n');
//  for(let i=1;i<arr.length;i++){
//    log(i+'\t'+arr[i]);
//  }

  arr.forEach((line) => log(`${num++}\t${line}`));

}catch(e){
  log(e.message);
}

